<div class="pageContent">
  <div class="pageFormContent" layoutH="56">  
  <div id="w_list_print">
  <table width="100%">
    <tr>
     <th colspan="2" align="center">
     <font style="font-size:22px;font-weight: bolder;">厦门俱佳工贸有限公司</font><br />
     <font style="font-size:18px; ">{$mainList.ordertype|getOrdertype}</font>
     </th>
    </tr>
    <tr>
     <th colspan="2" align="center">
     地址:厦门象屿五金机电城12-14　　电话:0592-8873605  　　传真:0592-6215929
     </th>
    </tr>
    <tr>
     <td width="80%" align="left">客 户：{$mainList.sendname|getTableColVal=Contacts,comname}</td>
     <td width="20%" align="left">单据编号：{$mainList.ordernumber}</td>
    </tr>
    <tr>
     <td width="80%" align="left">摘 要：{$mainList.remarks}</td>
     <td width="20%" align="left">单据日期：{$mainList.ordertime|date="Y 年 m 月 d 日",###}</td>
    </tr>
  </table>
  <table class="list" width="100%">
        <tr>
        <th align="center">編 號</th>
		<th align="center">商品編碼</th>
		<th align="center">商品名稱</th>
		<th align="center">規 格</th>
        <th align="center">型 号</th>
		<th align="center">單 位</th>
		<th align="center">數 量</th>
		<th align="center">单 价(RMB)</th>
		<th align="center">折 扣(%)</th>
		<th align="center">金 额(RMB)</th>
        <th align="center">备 注</th>
     </tr>
     <volist id="vo" name="detailList">
			<tr target="sid_user" rel="{$vo['id']}">
				<td align="center">{$vo['ordersort']}</td>
                <td align="left">{$vo['prodcode']}</td>
				<td align="left">{$vo['prodname']}</td>
				<td align="left">{$vo['prodsize']}</td>
                <td align="left">{$vo['partmodel']}</td>                
                <td align="center">{$vo['unit']}</td>                
                <td align="center">{$vo['ordernums']}</td>
                <td align="center"><neq name="vo['orderprice']" value="0">{$vo['orderprice']}</neq></td>  
                <td align="center"><neq name="vo['discounts']" value="0">{$vo['discounts']}</neq></td> 
                <td align="center"><neq name="vo['totalamount']" value="0">{$vo['totalamount']}</neq></td> 
                <td align="center"></td>               
			</tr>
     </volist>
     <tr>
				<td align="center"></td>
                <td align="left"></td>
				<td align="left"></td>
				<td align="left"></td>
                <td align="left"></td>                
                <td align="center"></td>                
                <td align="center"></td>
                <td align="center"></td>  
                <td align="center"></td> 
                <td align="center">&nbsp;</td> 
                <td align="center"></td>               
     </tr> 
     <tr>
				<td align="center"></td>
                <td align="left">合计：</td>
				<td align="left"></td>
				<td align="left"></td>
                <td align="left"></td>                
                <td align="center"></td>                
                <td align="center">{$mainList.ordernums}</td>
                <td align="center"></td>  
                <td align="center"></td> 
                <td align="center">{$mainList.orderamount}</td> 
                <td align="center"></td>               
     </tr> 
     <tr>               
                <td align="right" colspan="11">
                <if condition="($mainList.ordertype eq 1) or ($mainList.ordertype eq 4)"> 应付金额： <elseif condition="($mainList.ordertype eq 2) or ($mainList.ordertype eq 3)"/> 应收金额： </if>
                {$mainList.orderamount}
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <if condition="($mainList.ordertype eq 1) or ($mainList.ordertype eq 4)"> 实付金额： <elseif condition="($mainList.ordertype eq 2) or ($mainList.ordertype eq 3)"/> 实收金额： </if>
                {$mainList.payamount}
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                折扣金额：{$mainList.oddamount}
                </td>               
     </tr>
  </table>
  <table width="100%">
   <tr>
    <td width="25%">制单人：{$mainList.createuser|getTableColVal=User,nickname}</td>
    <td width="25%">经办人：{$mainList.orderuser|getTableColVal=User,nickname}</td>
    <td width="25%">送货人：</td>
    <td width="25%">验收人：</td>
   </tr>
   <tr>
    <td colspan="4" align="center">(&#9312;白联:留底&#9313;红联:客户&#9314;黄联:会计)</td>
   </tr>
  </table>
  </div>
  </div>
  <div class="formBar">
    <ul>        
		<li><div class="button"><div class="buttonContent"><button onclick="javascript:$.printBox('w_list_print')" type="button">打印单据</button></div></div></li>
		<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
	</ul>
	</div>
</div>


